@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
	height: 100%;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial,
		sans-serif;
}

label {
	font-weight: 700;
}
* {
	margin: 0;
	padding: 0;
}
html {
	height: 100%;
	box-sizing: border-box;
}

#app {
	height: 100%;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

.no-padding {
	padding: 0px !important;
}

.padding-content {
	padding: 4px 0;
}

a:focus,
a:active {
	outline: none;
}

a,
a:focus,
a:hover {
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

div:focus {
	outline: none;
}

.fr {
	float: right;
}

.fl {
	float: left;
}

.pr-5 {
	padding-right: 5px;
}

.pl-5 {
	padding-left: 5px;
}

.block {
	display: block;
}

.pointer {
	cursor: pointer;
}

.inlineBlock {
	display: block;
}

.clearfix {
	&:after {
		visibility: hidden;
		display: block;
		font-size: 0;
		content: ' ';
		clear: both;
		height: 0;
	}
}

aside {
	background: #eef1f6;
	padding: 8px 24px;
	margin-bottom: 20px;
	border-radius: 2px;
	display: block;
	line-height: 32px;
	font-size: 16px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
		'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
	color: #2c3e50;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;

	a {
		color: #337ab7;
		cursor: pointer;

		&:hover {
			color: rgb(32, 160, 255);
		}
	}
}

//main-container全局样式
.app-container {
	padding: 20px;
	min-height: calc(100vh - 150px);
	background: #fff;
	border-radius: 5px;
}

.components-container {
	margin: 30px 50px;
	position: relative;
}

.pagination-container {
	margin-top: 18px;
}

.text-center {
	text-align: center;
}

.sub-navbar {
	height: 50px;
	line-height: 50px;
	position: relative;
	width: 100%;
	text-align: right;
	padding-right: 20px;
	transition: 600ms ease position;
	background: linear-gradient(
		90deg,
		rgba(32, 182, 249, 1) 0%,
		rgba(32, 182, 249, 1) 0%,
		rgba(33, 120, 241, 1) 100%,
		rgba(33, 120, 241, 1) 100%
	);

	.subtitle {
		font-size: 20px;
		color: #fff;
	}

	&.draft {
		background: #d0d0d0;
	}

	&.deleted {
		background: #d0d0d0;
	}
}

.link-type,
.link-type:focus {
	color: #337ab7;
	cursor: pointer;

	&:hover {
		color: rgb(32, 160, 255);
	}
}

.filter-container {
	padding-bottom: 10px;

	.filter-item {
		display: inline-block;
		vertical-align: middle;
		margin-bottom: 10px;
	}
}

//refine vue-multiselect plugin
.multiselect {
	line-height: 16px;
}

.multiselect--active {
	z-index: 1000 !important;
}

.el-upload-list__item {
	transition: none !important;
}

// 搜索栏表单
.search-wrap {
	border-bottom: 1px solid #e5e6eb;
	margin-bottom: 20px;
	display: flex;
	justify-content: space-between;

	.el-form {
		flex: 1;

		.el-form-item {
			padding-right: 20px;
		}

		.el-date-editor {
			width: 100%;

			.el-range-input {
				background: rgba(0, 0, 0, 0);
			}
		}
	}

	.line {
		margin: 0 0 18px 18px;
		border-left: 1px solid #e5e6eb !important;
		display: flex;
		flex-wrap: wrap;
		padding: 4px 0 0 18px;

		.btn {
			height: 36px;
		}

		.btn + .btn {
			margin-top: 20px;
		}
	}
}

@media screen and (max-width: 750px) {
	.search-wrap {
		display: block;

		.line {
			width: 100%;
			border-left: none !important;
		}
	}
}

.el-input-group__prepend {
	border: none;
}

.el-input-group__append {
	border: none;
}

.dropdonRow {
	.dropdonRowLeft {
		float: left;
	}

	.dropdonRowRight {
		float: right;
	}
}

.btn-box {
	position: absolute;
	width: 100%;
	left: 0;
	bottom: 0;
	background: #fff;
	z-index: 9999;
	padding: 15px 20px;
	display: flex;
	justify-content: flex-end;

	.el-button {
		min-width: 68px;
		height: 36px;
		margin: 0 4px !important;
		padding: 0 20px;
		border: 0 none;
	}

	.el-button--default {
		background-color: #f2f3f5;
	}
}

// 抽屉
.el-drawer {
	position: absolute;

	.el-drawer__header {
		font-size: 18px;
		color: #1d2129;
		padding: 20px;
		font-weight: 600;
		margin-bottom: 14px;
		outline: 0 none;
	}

	.el-drawer__body {
		padding: 0 20px;
	}

	.drawer-close {
		position: absolute;
		top: 20px;
		right: 20px;
		cursor: pointer;
	}

	.el-form-item {
		margin-bottom: 15px;
	}

	.priceChange {
		max-height: calc(100vh - 150px);
		overflow-y: auto;
	}
}

// 窗口
.el-dialog {
	border-radius: 10px;
	overflow: hidden;
	.el-dialog__header {
		padding: 15px 20px;
		font-weight: 600;
		outline: 0 none;

		.el-dialog__title {
			font-size: 16px;
			color: #1d2129;
		}
	}

	.el-dialog__body {
		padding: 0 20px 26px 10px;
		max-height: calc(78vh - 140px);
		overflow-y: auto;
		overflow-x: hidden;

		.drawer-close {
			position: absolute;
			top: 20px;
			right: 20px;
			cursor: pointer;
		}

		.el-form {
			flex: 1;
		}
	}
}

.el-cascader {
	display: inline-grid;
}

.el-cascader__tags {
	position: absolute;
	transform: none;
	top: 5px;
}

.btn-txt {
	font-size: 14px;
	color: #5390f9;
	cursor: pointer;
	margin-right: 16px;
}

// 表单
.el-form .el-form-item {
	margin-bottom: 12px;
}
.el-form-item__content {
	min-height: 32px;
	display: flex;
	align-items: center;
}

.el-form-item__label {
	font-weight: 400;
}

.el-form--label-top {
	.el-form-item__label {
		padding-bottom: 0;
	}
}

.el-form--label-left {
	.el-form-item--small {
		.el-form-item__label {
			line-height: 36px;
		}
	}
}

.make-input {
	width: 100%;
	display: flex;
	background: #f5f6fa;
	border-radius: 2px;

	.division {
		padding: 0 10px;
	}
}

// 按钮
.el-button--info.is-plain {
	color: #1d2129;
	background: #f2f3f5;
}

.el-button--info.is-plain:hover,
.el-button--info.is-plain:focus {
	background: #e8eaed;
	color: #1d2129;
}

.is-plain {
	border-color: #f2f3f5 !important;
}

.el-button--info:hover,
.el-button--info:focus {
	color: #767c89;
}
.el-button--primary.is-plain {
	border: 1px solid #afdbf5 !important;
}
.el-button--text {
	padding: 0;
	font-size: 14px;
	line-height: 22px;
}
// 表格
.el-table--small {
	font-size: 13px;
}
.el-table th.el-table__cell {
	background: #eceff3;
	color: #1d2129;
}

.el-table--enable-row-hover .el-table__body tr:hover > td.el-table__cell {
	background-color: #f2f5fa;
}

.el-table__body tr.hover-row > td.el-table__cell,
.el-table__body tr.hover-row.current-row > td.el-table__cell,
.el-table__body tr.hover-row.el-table__row--striped > td.el-table__cell,
.el-table__body
	tr.hover-row.el-table__row--striped.current-row
	> td.el-table__cell
	.el-table__body
	tr.current-row
	> td {
	background-color: #e7ebf4;
}

.el-table .el-table__body td .cell:empty::after,
.el-table .el-table__body td .cell > span:empty::after,
.el-table .el-table__body td .cell .approval:empty::after,
.el-table .el-table__body td .cell div:empty::after,
.el-table .el-table__body td .cell .line-limit-length:empty::after {
	content: '--';
}

// 标签切换
.el-tabs {
	.el-tabs__item {
		color: #616b72;
	}

	.is-active {
		color: #3d3d3d;
		font-weight: 600;
	}
}

.echarts-echartCard {
	background: linear-gradient(
		304.17deg,
		rgba(253, 254, 255, 0.6) -6.04%,
		rgba(244, 247, 252, 0.6) 85.2%
	) !important;
	border: none !important;
	backdrop-filter: blur(10px) !important;

	border-radius: 6px !important;

	.echartCard {
		.echartCard-title {
			margin: 0 0 10px 0;
		}

		p {
			margin: 0;
		}

		.echartCard-title,
		.echartCard-value {
			font-size: 13px;
			line-height: 15px;
			display: flex;
			align-items: center;
			text-align: right;
			color: #1d2129;
			font-weight: 600;
		}

		.echartCard-panel {
			display: flex;
			justify-content: space-between;
			padding: 0 9px;
			background: #ffffff;
			color: #1d2129;
			width: 164px;
			height: 32px;
			line-height: 32px;
			box-shadow: 6px 0px 20px rgba(34, 87, 188, 0.1);
			border-radius: 4px;
			margin-bottom: 4px;
		}
	}
}

.el-card {
	&__header {
		padding: 15px 18px;
	}
}
